<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>高级表格的使用</title>
</head>
<body>

<table border="1" cellspacing="0" cellpadding="0" width="80%">
    <!-- 标题 -->
    <caption>年终数据报表</caption>
    <!-- 页眉 -->
    <thead bgcolor="yellow">
    <!-- 表头 -->
    <tr>
        <th>月份</th>
        <th>收入</th>
    </tr>
    </thead>
    <!-- 主体 -->
    <tbody bgcolor="pink">
    <tr>
        <td>1</td>
        <td>1000</td>
    </tr>
    <tr>
        <td>2</td>
        <td>2000</td>
    </tr>
    <tr>
        <td>3</td>
        <td>3000</td>
    </tr>
    <tr>
        <td>4</td>
        <td>4000</td>
    </tr>
    </tbody>
    <!-- 眉脚 -->
    <tfoot bgcolor="green">
    <tr>
        <td>平均月收入</td>
        <td>4000</td>
    </tr>
    <tr>
        <td>总计</td>
        <td>40000</td>
    </tr>
    </tfoot>
</table>
</body>
</html>